#include <pcl/PCDFileMappingStream1.h>
#include <pcl/PCDFileMappingStream1Wrapper.h>

FileMapping::PCDFileMappingStream1Wrapper::PCDFileMappingStream1Wrapper(PCDFileMappingStream1& pcd_stream):_pcd_file_stream(pcd_stream)
{
}

bool FileMapping::PCDFileMappingStream1Wrapper::is_open()
{
	return _pcd_file_stream.is_open();
}

size_t FileMapping::PCDFileMappingStream1Wrapper::size()
{
	return _pcd_file_stream.size();
}

bool FileMapping::PCDFileMappingStream1Wrapper::open(size_t height, size_t width)
{
	return _pcd_file_stream.open(height,width);
}

FileMapping::PCDFileMappingStream1& FileMapping::PCDFileMappingStream1Wrapper::get_stream()
{
	return _pcd_file_stream;
}

FileMapping::PCDFileMappingStream1Wrapper::~PCDFileMappingStream1Wrapper()
{
}

void FileMapping::copyPointCloud(PCDFileMappingStream1Wrapper& cloud_in, std::vector<std::size_t>& index, PCDFileMappingStream1Wrapper& cloud_out)
{
	FileMapping::copyPointCloud(cloud_in.get_stream(), index, cloud_out.get_stream());
}
